//
//  NSString+Extansion.h
//  HeylinkPro
//
//  Created by 胡韩国 on 2023/2/22.
//  Copyright © 2023 鼎合丰. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface NSString (Extansion)

//是否是邮箱
- (BOOL)isEmail;

//是否是邮箱
- (BOOL)isPhone;

//随机字符串
+ (NSString*)randomString;

//富文本
+ (NSAttributedString *)getAttributeWith:(id)sender
                                  string:(NSString *)string
                               orginFont:(UIFont *)orginFont
                              orginColor:(UIColor *)orginColor
                           attributeFont:(UIFont *)attributeFont
                          attributeColor:(UIColor *)attributeColor;

//mac地址添加冒号
-(NSString *)transformMacAddress;

- (NSString*)replaceSubString;

- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;

- (NSString*)currentLanguage;
//读取本地语音
- (NSString*)uiLanguage;


@end

NS_ASSUME_NONNULL_END
